package com.one.service;

import com.one.bean.User;
import com.one.vo.UserVo;

import java.util.Map;

/**
 * @author: tzy
 * @create: 2022/1/4
 * @FileName: WechatPayService
 * @Description: 微信支付业务接口
 */
public interface WechatPayService {
    /**
     * @author: tzy
     * @date: 2022/1/4
     * @return:
     * @Description: 生成统一下单接口参数
     */
    String wechatPayUnifiedOrderParamsXml(String body, Integer totalFee, String token) throws Exception;
    /**
     * @author: tzy
     * @date: 2022/1/4
     * @return:
     * @Description: 请求微信官方，统一下单
     */
    Map<String, String> wechatPayUnifiedOrder(String unifiedOrderParamsXml) throws Exception;
    /**
     * @author: tzy
     * @date: 2022/1/17
     * @return:
     * @Description:  解析微信支付异步回调结果，并返回响应通知结果
     */
    String wechatPayUnifiedNotifyResole(String unifiedNotifyResultXml) throws Exception;
    /**
     * @author: tzy
     * @date: 2022/1/17
     * @return:
     * @Description: 更新用户信息
     */
    Boolean modUser(User user);
    /**
     * @author: tzy
     * @date: 2022/1/21
     * @return:
     * @Description: 查询用户的会员到期时间
     */
    String findUserMemberDate(UserVo userVo);
}
